import java.util.Scanner;

public class test3 {
    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        int n = scanner.nextInt();
        int m = scanner.nextInt();
        int i = 0;
        int j = 0;
        int sum = 0;
        for(i=1;i<=n;i++){
            for(j=1;j<=m;j++){
                sum = i*j;
                System.out.print(i+"*"+j+"="+sum+" ");
            }System.out.println();

        }

    }
}
